﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_ProfitCenter : DataObject
    {
        [Column]
        public string Profit_Center { get { return _Profit_Center; } set { _Profit_Center = value; EntityState.FieldChange("Profit_Center"); } }
        private string _Profit_Center;
        public static FieldInfo profit_center = new FieldInfo("m_ProfitCenter", "Profit_Center");

        [Column]
        public string Channel { get { return _Channel; } set { _Channel = value; EntityState.FieldChange("Channel"); } }
        private string _Channel;
        public static FieldInfo channel = new FieldInfo("m_ProfitCenter", "Channel");

        [Column]
        public string Company { get { return _Company; } set { _Company = value; EntityState.FieldChange("Company"); } }
        private string _Company;
        public static FieldInfo company = new FieldInfo("m_ProfitCenter", "Company");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_ProfitCenter", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_ProfitCenter", "Status");
    }
}
